#ifndef DLWINDOW_H
#define DLWINDOW_H

#include <QDialog>
#include <string>
#include <QProgressBar>
#include <QLabel>
#include <QFile>
#include <QDataStream>
#include "connexion.h"
#include "../TransferedData.h"
#include "../MySocket.h"

#define BUFFER_SIZE (1024)

using namespace std;

class DLWindow : public QDialog
{
    Q_OBJECT
public:
    explicit DLWindow(QWidget *parent = 0,string filename = "");
    void launch(Connexion *conex, string fileName, string author,string dir);
signals:
    
public slots:

private:
    QProgressBar *progress;
    QLabel *l_filename;

};

#endif // DLWINDOW_H
